package com.huamoxi.consts;

public class ResponseConst {
    /**
     * 默认访问成功
     */
    public static final int SUCCESS_CODE = 200;

    /**
     * 默认访问失败
     */
    public static final int FAIL_CODE = 500;

    /**
     * 访问未携带token
     */
    public static final int INVALID_CODE = 401;

    /**
     * 访问携带token不合法
     */
    public static final int NOT_LOGIN_CODE = 401;

    /**
     * 登录失败
     */
    public static final int BAD_LOGIN_CODE = 403;

    /**
     * token已过期
     */
    public static final int EXP_LOGIN_CODE = 403;

    /**
     * 响应信息
     * */
    // -----------------上面对应的message------------------ //
    public static final String SUCCESS_MESSAGE = "访问成功";
    public static final String FAIL_MESSAGE = "访问失败";
    public static final String INVALID_MESSAGE = "不合法的令牌";
    public static final String NOT_LOGIN_MESSAGE = "未登录,请先登录";
    public static final String ERR_LOGIN_REPEAT = "请勿重复提交";
    public static final String ERR_LOGIN_MESSAGE = "登录失败";
    public static final String ERR_LOGIN_NO_ACCOUNT = "登录失败,未查询到用户信息";
    public static final String ERR_PARAMETER = "参数错误";
    public static final String ERR_LOGIN_EXP_TOKEN = "token已过期";
    public static final String ERR_LOGIN_ACCOUNT_LOCKED = "账号已被锁定";

}
